<!DOCTYPE html>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel="stylesheet" href="../../../plugins/bootstrap/css/bootstrap.min.css" type="text/css">
	</link>
	<link rel="stylesheet" href="../../../plugins/FlatUI/dist/css/flat-ui.css" type="text/css">
	</link>
	<link rel="shortcut icon" href="../../../plugins/FlatUI/dist/img/favicon.ico">
	<link rel="stylesheet" href="../../../css/style.css">
	<script type="text/javascript" src="../../../js/jquery.js"></script>
	<script type="text/javascript" src="../../../plugins/FlatUI/dist/js/flat-ui.js"></script>
	<script type="text/javascript" src="../../../js/base.js"></script>
	<title>万里金融系统-后台登陆</title>
	<script type="text/javascript">

		$(function () {
			/* $('#loginFrm'); */
			$("#loginbtn").click(function () {
				console.log($("#userName").val() + "=name");
				console.log($("#pwd").val() + "=pwd");
				//登录成功后转至
				//window.location.href="main.html";
				$.ajax({
					url: commonurl + "/selectUser.user",
					type: "POST",
					data: {
						"userName": $("#userName").val(),
						"pwd": $("#pwd").val()
					},
					dataType: "json",
					success: function (data) {
						if (data.success) {
							console.log(data.obj);
							sessionStorage.setItem('user', JSON.stringify(data.obj));
							location.href = "main.html";
						}else{
							$('#loginInfo').html(data.msg);
						}
					}

				})
			})

		})
	</script>
	<style type="text/css">
		body {
			background-color: #7784a0;
			padding-top: 15%;
		}

		.loginDiv {
			margin: auto;
			height: 300px;
			width: 600px;
			margin-top: 1111pz;
			;
			background-color: #aaaaaa;
			color: white;
		}

		.loginFrm {
			margin: auto;
			height: 250px;
			width: 600px;
			background: #ffffff;
			margin-top: 1111pz;
		}
	</style>
</head>

<body style="background: url(../../../images/backimage.jpg)">
	<div class="loginDiv" style="height: 61px;">
		<h3 style="text-align: center;padding-top: 10px;">万里金融系统</h3>
	</div>
	<div class="loginFrm">
		<form class="form-horizontal" role="form" action="">
			<div class="form-group" style="padding-top: 15px;">
				<label for="userName" class="col-lg-2 control-label">用户名</label>
				<div class="col-lg-9">
					<input type="text" class="form-control" id="userName" />
				</div>
			</div>
			<div class="form-group">
				<label for="pwd" class="col-lg-2 control-label">密码</label>
				<div class="col-lg-9">
					<input type="password" class="form-control" id="pwd" />
				</div>
			</div>
			<div class="form-group" align="center">
				<div class="col-lg-6" id="loginInfo" style="font-size: 13px;
    color: red;
    line-height: 20px;">
				</div>
				<div class="col-lg-6" style="width: 100%;text-align: center;">
					<a id="loginbtn" style="border: none;" class="btn">
						<img alt="" src="../../../images/login_btn.png">
					</a>
				</div>
			</div>
		</form>
	</div>
</body>

</html>